#ifndef _QUADRIC_TEXTURE_H_
#define _QUADRIC_TEXTURE_H_

#include "object.h"
#include "../my/include/Matrix.h"

class QuadricTexture: public Object {
	double a;
	double b;
	double c;
	double d;
	double e;
	double f;
	double g;
	double h;
	double i;
	double j;
	Matrix m;
	Vertex sp;
	double parameter;

	PPMImage *image;
public:
	QuadricTexture(double aa, double bb, double cc, double dd, double ee, double ff,
			double gg, double hh, double ii, double jj,Vertex &psp, double pr, PPMImage *img);
	bool intersect(Ray &ray, Hit *h);
};

#endif
